package com.zzyweb.rentalcarsys.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCode {
    FAIL(550,"数据库操作失败"),
    INVALID_ACCOUNT(601,"登陆失败"),
    WRONG_CODE(602,"图片验证码输入错误"),
    UNKNOWN_ERROR(600,"未知错误"),
    BANNED_EMAIL(650,"邮箱暂时封禁"),
    WRONG_CAPTCHA_CODE(651,"邮箱验证码错误"),
    EXISTED_USERNAME(701,"用户名已经存在"),
    EXISTED_EMAIL(702,"邮箱已经被使用"),
    EXISTED_PHONE_NUMBER(703,"手机号已经被使用"),
    REGISTRATION_FAILED(710,"注册失败");
    private final Integer code;
    private final String description;
}
